import request from '@/utils/request'

// 查询投诉建议列表
export function listComplaintadvice(query) {
  return request({
    url: '/wechat/complaintadvice/list',
    method: 'get',
    params: query
  })
}

// 查询投诉建议详细
export function getComplaintadvice(complaintAdviceId) {
  return request({
    url: '/wechat/complaintadvice/' + complaintAdviceId,
    method: 'get'
  })
}

// 新增投诉建议
export function addComplaintadvice(data) {
  return request({
    url: '/wechat/complaintadvice',
    method: 'post',
    data: data
  })
}

// 修改投诉建议
export function updateComplaintadvice(data) {
  return request({
    url: '/wechat/complaintadvice',
    method: 'put',
    data: data
  })
}

// 删除投诉建议
export function delComplaintadvice(complaintAdviceId) {
  return request({
    url: '/wechat/complaintadvice/' + complaintAdviceId,
    method: 'delete'
  })
}

// 导出投诉建议
export function exportComplaintadvice(query) {
  return request({
    url: '/wechat/complaintadvice/export',
    method: 'get',
    params: query
  })
}